package com.varian.system.dto;

import com.varian.tool.enums.CommonStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ben
 * @since 2024/9/24
 */
@Data
@Schema(title = "业务异常数据对象")
public class SysBizExceptionDTO {

    @Schema(title = "业务编码")
    @NotBlank(message = "业务编码不能为空")
    private String bizCode;

    @Schema(title = "业务信息")
    @NotBlank(message = "业务信息不能为空")
    private String bizMessage;

    @Schema(title = "异常状态")
    @NotNull(message = "异常状态不能为空")
    private CommonStatusEnum bizExceptionStatus;

}
